package myArrayList;

public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.add(6);
        boolean contains = myArrayList.contains(4);
        myArrayList.display();
    }
    public static void main1(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);//0
        myArrayList.add(2);//1
        myArrayList.add(3);//2
        myArrayList.add(4);//3
        myArrayList.add(5);//4
        myArrayList.add(0,7);
        myArrayList.contains(55);
        myArrayList.display();
        myArrayList.contains(55);
        myArrayList.indexOf(1);
        System.out.println("[================]");
        myArrayList.contains(55);

    }
}

